package cn.kinoko.model.manga.req;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * @author kinoko
 */
@Data
public class MangaPageReSortReq {

    @NotNull(message = "章节id为必填参数")
    private Long epId;

    @Valid
    List<SortItem> sortList;

    @Data
    public static class SortItem {
        @NotNull(message = "页码id为必填参数")
        private Long pageId;
        @NotNull(message = "页码排序为必填参数")
        private Integer number;
    }

}
